using System;
using System.ComponentModel;
using System.Data;
using System.Runtime.Serialization;

namespace DataAccess
{
	/// <summary>
	/// A custom serializable dataset containing Adm_acciones information.
	/// </summary>
	[Serializable()]
	[DesignerCategory("code")]
	public class Adm_AccionesData : DataTable
	{
		///
		/// Constants for table and fields mapping
		///
		public const String ADM_ACCIONES_TABLE = "ADM_ACCIONES";
		public const String ACC_ID_FIELD = "ACC_ID";
		public const String ACC_NOMBRE_FIELD = "ACC_NOMBRE";
		public const String ACC_BOTON_FIELD = "ACC_BOTON";
		public const String ACC_TIPO_FIELD = "ACC_TIPO";

		protected Adm_AccionesData(SerializationInfo info, StreamingContext context)
		{
		}

		public Adm_AccionesData()
		{
			BuildDataTables();
		}


		/// <summary>
		/// Creates the following datatables: Adm_acciones
		/// </summary>
		private void BuildDataTables()
		{
			Columns.Add(ACC_ID_FIELD, typeof (Decimal));
			Columns.Add(ACC_NOMBRE_FIELD, typeof (String));
			Columns.Add(ACC_BOTON_FIELD, typeof (String));
			Columns.Add(ACC_TIPO_FIELD, typeof (String));
		    TableName = ADM_ACCIONES_TABLE;
		}

		/// <summary>
		/// Add a new row to the table
		/// </summary>
		/// <param name='row'>Dataset row</param>
		public void addAdm_Acciones(DataRow row)
		{
			Rows.Add(row);
		}
	}
}